<?php

namespace mpend\models;

use Yii;

/**
 * User
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class User extends \common\models\user\User {

    /**
     * @inheritdoc
     */
    public function fields() {
        return [
            'id',
            'username' => 'userName',
            'description',
            'avatar' => 'portrait',
            'gender',
            'mobile' => function () {
                return $this->decryptMobile();
            },
            'actived',
            'authented',
        ];
    }

}
